package com.huilian.iotbox.admin.quartz.job;

import com.huilian.iotbox.admin.service.DeviceService;
import com.huilian.iotbox.data.utils.DateTimeUtils;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import javax.annotation.Resource;

/**
 * @author LinYinDong
 * @date 2024/7/17 下午2:01
 */
@Slf4j
public class DeviceAnnualFeeTaskJob implements BaseJob {
    @Resource
    private DeviceService deviceService;
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("--------------定时任务开始时间{}---------------", DateTimeUtils.currTime());
        deviceService.statsDayDeviceJob();
        log.info("--------------定时任务结束时间{}---------------", DateTimeUtils.currTime());
    }
}
